package com.haiheng.library_base.db

import androidx.room.*
import java.util.Date

/**
 *
 * @Des:层架映射表
 * @Author: hwz
 * @Date:2023/6/16 0016
 * @Version: 1.0
 */
@Entity(tableName = "layer_map", indices = [Index(value = ["outValue"], unique = true)])
data class LayerMap (
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    @ColumnInfo(name = "containerId")
    var containerId: Int = 0,
    @ColumnInfo(name = "containerSubCode")
    var containerSubCode: String? = null,
    @ColumnInfo(name = "displayName")
    var displayName: String? = null,
    @ColumnInfo(name = "mapType")
    var mapType: Int = 0,
    @ColumnInfo(name = "name")
    var name: String? = null,
    @ColumnInfo(name = "orgCode")
    var orgCode: String? = null,
    @ColumnInfo(name = "orgLocation")
    var orgLocation:String? = null,
    @ColumnInfo(name = "outType")
    var outType: Int = 0,
    @ColumnInfo(name = "outValue")
    var outValue: String? = "",
    @ColumnInfo(name = "sysIdValue")
    var sysIdValue: Int = 0,
    @ColumnInfo(name = "sysSelfIdValue")
    var sysSelfIdValue: Int = 0,
    @ColumnInfo(name = "sysValue")
    var sysValue: String? = null,
    //记录时间
    @ColumnInfo(name = "createDate")
    var createDate: Date = Date(),
)